<style type="text/css" media="screen">
.main{
  width:799px; overflow:hidden;
}
iframe >html {
  /* background:red; */
  with:680px;
  overflow:hidden
}
iframe{
  width:100%;
  overflow: hidden;
}
html,body{ width:100%; height:100%;}
.main{ width:100%; height:900px; background-color:#eee;}
.isActive {
  height:2900px;
  min-height:2209px;
}
</style>
<template>
  <div style=" with:700px;overflow:hidden;" class="echartss">
  <h1 v-if="abcd">abc</h1>
  <!-- <h1>{{iframeHeight}}</h1> -->
   <iframe :src="iframurl" :height="iframeHeight" id="idontkown" frameborder="0" v-bind:class="{ active: isActive }"  :scrolling="isno" style="width:1px !important;min-width:100%;"></iframe>
  </div>
</template>

<script>
    var count=0;
  function sendMessage() {
      window.parent.postMessage(
            JSON.stringify({"greeting": "hello world"}), // A stringified message to send.
            "*" // The intended origin, in this example we use the any origin wildcard.
          );
    }
  setInterval(function(){
      sendMessage(); // Send a message every second
    },1000);

  window.onmessage = function(e){
      if(e.origin === window.location.origin){
            return;
          }
      if(!e.data){
            throw new Error('Message event contains no readable data.');
          }
      console.log(e.data);
    if (e.data.key=="SCH5_SCROLL_HEIGHT") {
      Event.fire('changheight',e.data.height)
    }
     if (e.data.key=="LEP_GO_LOGIN") {
       console.info(e.data.redirectUrl,5757);
       // this.$store.commit("login_iframe",e.data.redirectUrl)
       Event.fire('whatup')
       Event.fire('redirect',e.data.redirectUrl);
     }
    if (e.data.key ==""){

    }
      // var elm = document.createElement('li');
      // elm.innerHTML = e.data;
      // var out = document.getElementById('messages');
      // out.appendChild(elm);
    }

import { Divider, Card ,Cell} from 'vux'
import Vue from 'vue'
import VueFrame from 'vue-frame'
import ECharts from 'vue2-echarts/src/ECharts/ECharts.vue'
Vue.component('chart', ECharts)
export default {
   data: function () {
    let data = []

    for (let i = 0; i <= 360; i++) {
        let t = i / 180 * Math.PI
        let r = Math.sin(2 * t) * Math.cos(2 * t)
        data.push([r, i])
    }

     var datas =   {
    "yAxle": [
        "65.26",
        "64.86",
        "64.45",
        "64.05",
        "63.64"
    ],
    "p": "09:30,64.20,2016/07/06 星期三,64.20 #0f990f,-0.39% #0f990f,3.75万;09:31,63.95,,63.95 #0f990f,-0.78% #0f990f,13.62万;09:32,64.01,,64.01 #0f990f,-0.68% #0f990f,21.81万;09:33,64.12,,64.12 #0f990f,-0.51% #0f990f,11.60万;09:34,64.05,,64.05 #0f990f,-0.62% #0f990f,19.54万;09:35,64.06,,64.06 #0f990f,-0.61% #0f990f,14.80万;09:36,64.10,,64.10 #0f990f,-0.54% #0f990f,13.38万;09:37,64.08,,64.08 #0f990f,-0.57% #0f990f,18.63万;09:38,64.05,,64.05 #0f990f,-0.62% #0f990f,7.08万;09:39,64.10,,64.10 #0f990f,-0.54% #0f990f,6.85万;09:40,64.11,,64.11 #0f990f,-0.53% #0f990f,13.89万;09:41,64.19,,64.19 #0f990f,-0.40% #0f990f,21.20万;09:42,64.13,,64.13 #0f990f,-0.50% #0f990f,9.52万;09:43,64.13,,64.13 #0f990f,-0.50% #0f990f,12.03万;09:44,64.21,,64.21 #0f990f,-0.37% #0f990f,8.97万;09:45,64.41,,64.41 #0f990f,-0.06% #0f990f,13.78万;09:46,64.66,,64.66 #f54545,0.33% #f54545,9.66万;09:47,64.77,,64.77 #f54545,0.50% #f54545,19.04万;09:48,64.80,,64.80 #f54545,0.54% #f54545,24.10万;09:49,64.72,,64.72 #f54545,0.42% #f54545,20.06万;09:50,65.26,,65.26 #f54545,1.26% #f54545,44.49万;09:51,65.10,,65.10 #f54545,1.01% #f54545,34.69万;09:52,65.16,,65.16 #f54545,1.10% #f54545,19.43万;09:53,65.08,,65.08 #f54545,0.98% #f54545,12.00万;09:54,64.92,,64.92 #f54545,0.73% #f54545,12.02万;09:55,64.93,,64.93 #f54545,0.74% #f54545,12.57万;09:56,64.80,,64.80 #f54545,0.54% #f54545,9.32万;09:57,64.86,,64.86 #f54545,0.64% #f54545,6.06万;09:58,64.81,,64.81 #f54545,0.56% #f54545,4.92万;09:59,64.70,,64.70 #f54545,0.39% #f54545,7.05万;10:00,64.70,,64.70 #f54545,0.39% #f54545,7.76万;10:01,64.77,,64.77 #f54545,0.50% #f54545,5.63万;10:02,64.84,,64.84 #f54545,0.61% #f54545,5.85万;10:03,64.83,,64.83 #f54545,0.59% #f54545,3.02万;10:04,64.80,,64.80 #f54545,0.54% #f54545,7.20万;10:05,64.72,,64.72 #f54545,0.42% #f54545,4.29万;10:06,64.70,,64.70 #f54545,0.39% #f54545,4.73万;10:07,64.69,,64.69 #f54545,0.37% #f54545,1.29万;10:08,64.69,,64.69 #f54545,0.37% #f54545,4.31万;10:09,64.60,,64.60 #f54545,0.23% #f54545,5.82万;10:10,64.50,,64.50 #f54545,0.08% #f54545,7.80万;10:11,64.43,,64.43 #0f990f,-0.03% #0f990f,5.75万;10:12,64.47,,64.47 #f54545,0.03% #f54545,4.12万;10:13,64.45,,64.45 ,0.00% ,8.98万;10:14,64.39,,64.39 #0f990f,-0.09% #0f990f,4.82万;10:15,64.32,,64.32 #0f990f,-0.20% #0f990f,4.27万;10:16,64.25,,64.25 #0f990f,-0.31% #0f990f,3.72万;10:17,64.22,,64.22 #0f990f,-0.36% #0f990f,9.86万;10:18,64.30,,64.30 #0f990f,-0.23% #0f990f,10.87万;10:19,64.19,,64.19 #0f990f,-0.40% #0f990f,10.03万;10:20,64.15,,64.15 #0f990f,-0.47% #0f990f,8.97万;10:21,64.20,,64.20 #0f990f,-0.39% #0f990f,11.02万;10:22,64.24,,64.24 #0f990f,-0.33% #0f990f,8.05万;10:23,64.27,,64.27 #0f990f,-0.28% #0f990f,5.80万;10:24,64.20,,64.20 #0f990f,-0.39% #0f990f,11.25万;10:25,64.22,,64.22 #0f990f,-0.36% #0f990f,10.49万;10:26,64.23,,64.23 #0f990f,-0.34% #0f990f,7.30万;10:27,64.19,,64.19 #0f990f,-0.40% #0f990f,5.94万;10:28,64.19,,64.19 #0f990f,-0.40% #0f990f,6.40万;10:29,64.22,,64.22 #0f990f,-0.36% #0f990f,1.39万;10:30,64.23,,64.23 #0f990f,-0.34% #0f990f,8.13万;10:31,64.27,,64.27 #0f990f,-0.28% #0f990f,16.89万;10:32,64.40,,64.40 #0f990f,-0.08% #0f990f,10.55万;10:33,64.44,,64.44 #0f990f,-0.02% #0f990f,5.91万;10:34,64.45,,64.45 ,0.00% ,3.26万;10:35,64.31,,64.31 #0f990f,-0.22% #0f990f,7.09万;10:36,64.30,,64.30 #0f990f,-0.23% #0f990f,3.92万;10:37,64.32,,64.32 #0f990f,-0.20% #0f990f,9500;10:38,64.39,,64.39 #0f990f,-0.09% #0f990f,5.50万;10:39,64.43,,64.43 #0f990f,-0.03% #0f990f,3.37万;10:40,64.38,,64.38 #0f990f,-0.11% #0f990f,1.09万;10:41,64.29,,64.29 #0f990f,-0.25% #0f990f,9.81万;10:42,64.21,,64.21 #0f990f,-0.37% #0f990f,8.09万;10:43,64.28,,64.28 #0f990f,-0.26% #0f990f,1.68万;10:44,64.21,,64.21 #0f990f,-0.37% #0f990f,2.81万;10:45,64.17,,64.17 #0f990f,-0.43% #0f990f,11.12万;10:46,64.15,,64.15 #0f990f,-0.47% #0f990f,6.02万;10:47,64.20,,64.20 #0f990f,-0.39% #0f990f,8.39万;10:48,64.11,,64.11 #0f990f,-0.53% #0f990f,12.79万;10:49,64.12,,64.12 #0f990f,-0.51% #0f990f,2.04万;10:50,64.07,,64.07 #0f990f,-0.59% #0f990f,9.29万;10:51,64.12,,64.12 #0f990f,-0.51% #0f990f,8.98万;10:52,64.24,,64.24 #0f990f,-0.33% #0f990f,3.32万;10:53,64.20,,64.20 #0f990f,-0.39% #0f990f,2.88万;10:54,64.23,,64.23 #0f990f,-0.34% #0f990f,4.37万;10:55,64.23,,64.23 #0f990f,-0.34% #0f990f,6.26万;10:56,64.50,,64.50 #f54545,0.08% #f54545,7.21万;10:57,64.70,,64.70 #f54545,0.39% #f54545,4.98万;10:58,64.65,,64.65 #f54545,0.31% #f54545,11.12万;10:59,64.44,,64.44 #0f990f,-0.02% #0f990f,8.55万;11:00,64.45,,64.45 ,0.00% ,9.81万;11:01,64.57,,64.57 #f54545,0.19% #f54545,4.55万;11:02,64.54,,64.54 #f54545,0.14% #f54545,4.27万;11:03,64.49,,64.49 #f54545,0.06% #f54545,5.45万;11:04,64.55,,64.55 #f54545,0.16% #f54545,9.78万;11:05,64.65,,64.65 #f54545,0.31% #f54545,4.46万;11:06,64.75,,64.75 #f54545,0.47% #f54545,6.49万;11:07,64.70,,64.70 #f54545,0.39% #f54545,12.85万;11:08,64.60,,64.60 #f54545,0.23% #f54545,3.29万;11:09,64.57,,64.57 #f54545,0.19% #f54545,7.23万;11:10,64.50,,64.50 #f54545,0.08% #f54545,3.59万;11:11,64.47,,64.47 #f54545,0.03% #f54545,1.78万;11:12,64.40,,64.40 #0f990f,-0.08% #0f990f,3.28万;11:13,64.34,,64.34 #0f990f,-0.17% #0f990f,1.08万;11:14,64.32,,64.32 #0f990f,-0.20% #0f990f,2.01万;11:15,64.44,,64.44 #0f990f,-0.02% #0f990f,2.51万;11:16,64.36,,64.36 #0f990f,-0.14% #0f990f,1.75万;11:17,64.38,,64.38 #0f990f,-0.11% #0f990f,8500;11:18,64.33,,64.33 #0f990f,-0.19% #0f990f,1.29万;11:19,64.26,,64.26 #0f990f,-0.29% #0f990f,4.24万;11:20,64.24,,64.24 #0f990f,-0.33% #0f990f,1.88万;11:21,64.24,,64.24 #0f990f,-0.33% #0f990f,3.31万;11:22,64.26,,64.26 #0f990f,-0.29% #0f990f,1.81万;11:23,64.30,,64.30 #0f990f,-0.23% #0f990f,1.66万;11:24,64.32,,64.32 #0f990f,-0.20% #0f990f,8800;11:25,64.32,,64.32 #0f990f,-0.20% #0f990f,1.48万;11:26,64.28,,64.28 #0f990f,-0.26% #0f990f,1.20万;11:27,64.31,,64.31 #0f990f,-0.22% #0f990f,1.48万;11:28,64.35,,64.35 #0f990f,-0.16% #0f990f,1.32万;11:29,64.32,,64.32 #0f990f,-0.20% #0f990f,5800;11:30,64.35,,64.35 #0f990f,-0.16% #0f990f,7300;13:00,64.35,,64.35 #0f990f,-0.16% #0f990f,3.54万;13:01,64.38,,64.38 #0f990f,-0.11% #0f990f,1.07万;13:02,64.38,,64.38 #0f990f,-0.11% #0f990f,1.71万;13:03,64.35,,64.35 #0f990f,-0.16% #0f990f,1.83万;13:04,64.35,,64.35 #0f990f,-0.16% #0f990f,2.02万;13:05,64.33,,64.33 #0f990f,-0.19% #0f990f,1.51万;13:06,64.49,,64.49 #f54545,0.06% #f54545,4.72万;13:07,64.58,,64.58 #f54545,0.20% #f54545,4.90万;13:08,64.57,,64.57 #f54545,0.19% #f54545,1.57万;13:09,64.55,,64.55 #f54545,0.16% #f54545,5.77万;13:10,64.54,,64.54 #f54545,0.14% #f54545,3.01万;13:11,64.50,,64.50 #f54545,0.08% #f54545,1.26万;13:12,64.52,,64.52 #f54545,0.11% #f54545,3.27万;13:13,64.60,,64.60 #f54545,0.23% #f54545,4.47万;13:14,64.62,,64.62 #f54545,0.26% #f54545,6.48万;13:15,64.52,,64.52 #f54545,0.11% #f54545,4.70万;13:16,64.40,,64.40 #0f990f,-0.08% #0f990f,2.92万;13:17,64.37,,64.37 #0f990f,-0.12% #0f990f,1.35万;13:18,64.51,,64.51 #f54545,0.09% #f54545,4.49万;13:19,64.60,,64.60 #f54545,0.23% #f54545,4.80万;13:20,64.61,,64.61 #f54545,0.25% #f54545,3.16万;13:21,64.51,,64.51 #f54545,0.09% #f54545,2.84万;13:22,64.60,,64.60 #f54545,0.23% #f54545,3.90万;13:23,64.52,,64.52 #f54545,0.11% #f54545,4.35万;13:24,64.60,,64.60 #f54545,0.23% #f54545,12.57万;13:25,64.55,,64.55 #f54545,0.16% #f54545,2.96万;13:26,64.53,,64.53 #f54545,0.12% #f54545,2.89万;13:27,64.55,,64.55 #f54545,0.16% #f54545,12.22万;13:28,64.51,,64.51 #f54545,0.09% #f54545,3.87万;13:29,64.48,,64.48 #f54545,0.05% #f54545,2.22万;13:30,64.99,,64.99 #f54545,0.84% #f54545,29.16万;13:31,64.86,,64.86 #f54545,0.64% #f54545,26.37万;13:32,65.15,,65.15 #f54545,1.09% #f54545,37.81万;13:33,65.05,,65.05 #f54545,0.93% #f54545,39.17万;13:34,65.13,,65.13 #f54545,1.06% #f54545,26.16万;13:35,65.23,,65.23 #f54545,1.21% #f54545,47.16万;13:36,65.12,,65.12 #f54545,1.04% #f54545,35.41万;13:37,65.08,,65.08 #f54545,0.98% #f54545,17.40万;13:38,65.04,,65.04 #f54545,0.92% #f54545,10.15万;13:39,64.97,,64.97 #f54545,0.81% #f54545,23.06万;13:40,64.90,,64.90 #f54545,0.70% #f54545,4.73万;13:41,64.97,,64.97 #f54545,0.81% #f54545,9.18万;13:42,65.00,,65.00 #f54545,0.85% #f54545,15.06万;13:43,64.94,,64.94 #f54545,0.76% #f54545,4.87万;13:44,64.92,,64.92 #f54545,0.73% #f54545,8.58万;13:45,64.90,,64.90 #f54545,0.70% #f54545,4.95万;13:46,64.99,,64.99 #f54545,0.84% #f54545,9.75万;13:47,64.96,,64.96 #f54545,0.79% #f54545,9.63万;13:48,64.90,,64.90 #f54545,0.70% #f54545,6.24万;13:49,64.81,,64.81 #f54545,0.56% #f54545,4.63万;13:50,64.76,,64.76 #f54545,0.48% #f54545,4.30万;13:51,64.79,,64.79 #f54545,0.53% #f54545,2.48万;13:52,64.75,,64.75 #f54545,0.47% #f54545,11.13万;13:53,64.64,,64.64 #f54545,0.29% #f54545,4.01万;13:54,64.61,,64.61 #f54545,0.25% #f54545,4.57万;13:55,64.62,,64.62 #f54545,0.26% #f54545,5.67万;13:56,64.67,,64.67 #f54545,0.34% #f54545,7.05万;13:57,64.69,,64.69 #f54545,0.37% #f54545,5.24万;13:58,64.72,,64.72 #f54545,0.42% #f54545,4.01万;13:59,64.67,,64.67 #f54545,0.34% #f54545,5.01万;14:00,64.65,,64.65 #f54545,0.31% #f54545,1.11万;14:01,64.60,,64.60 #f54545,0.23% #f54545,6.52万;14:02,64.57,,64.57 #f54545,0.19% #f54545,4.23万;14:03,64.57,,64.57 #f54545,0.19% #f54545,1.30万;14:04,64.46,,64.46 #f54545,0.02% #f54545,7.98万;14:05,64.45,,64.45 ,0.00% ,6.61万;14:06,64.45,,64.45 ,0.00% ,7.19万;14:07,64.43,,64.43 #0f990f,-0.03% #0f990f,6.99万;14:08,64.37,,64.37 #0f990f,-0.12% #0f990f,8.86万;14:09,64.31,,64.31 #0f990f,-0.22% #0f990f,14.55万;14:10,64.26,,64.26 #0f990f,-0.29% #0f990f,5.68万;14:11,64.25,,64.25 #0f990f,-0.31% #0f990f,5.90万;14:12,64.28,,64.28 #0f990f,-0.26% #0f990f,8.29万;14:13,64.28,,64.28 #0f990f,-0.26% #0f990f,5.30万;14:14,64.25,,64.25 #0f990f,-0.31% #0f990f,11.43万;14:15,64.29,,64.29 #0f990f,-0.25% #0f990f,4.30万;14:16,64.26,,64.26 #0f990f,-0.29% #0f990f,18.12万;14:17,64.22,,64.22 #0f990f,-0.36% #0f990f,14.91万;14:18,64.29,,64.29 #0f990f,-0.25% #0f990f,6.25万;14:19,64.29,,64.29 #0f990f,-0.25% #0f990f,6.72万;14:20,64.25,,64.25 #0f990f,-0.31% #0f990f,9.70万;14:21,64.18,,64.18 #0f990f,-0.42% #0f990f,6.96万;14:22,64.20,,64.20 #0f990f,-0.39% #0f990f,11.92万;14:23,64.30,,64.30 #0f990f,-0.23% #0f990f,11.18万;14:24,64.50,,64.50 #f54545,0.08% #f54545,4.47万;14:25,64.49,,64.49 #f54545,0.06% #f54545,7.16万;14:26,64.46,,64.46 #f54545,0.02% #f54545,1.96万;14:27,64.40,,64.40 #0f990f,-0.08% #0f990f,6.10万;14:28,64.34,,64.34 #0f990f,-0.17% #0f990f,4.22万;14:29,64.40,,64.40 #0f990f,-0.08% #0f990f,4.80万;14:30,64.35,,64.35 #0f990f,-0.16% #0f990f,6.93万;14:31,64.35,,64.35 #0f990f,-0.16% #0f990f,3.96万;14:32,64.35,,64.35 #0f990f,-0.16% #0f990f,4.48万;14:33,64.36,,64.36 #0f990f,-0.14% #0f990f,5.08万;14:34,64.39,,64.39 #0f990f,-0.09% #0f990f,4.24万;14:35,64.38,,64.38 #0f990f,-0.11% #0f990f,4.39万;14:36,64.32,,64.32 #0f990f,-0.20% #0f990f,4.11万;14:37,64.32,,64.32 #0f990f,-0.20% #0f990f,10.84万;14:38,64.31,,64.31 #0f990f,-0.22% #0f990f,5.37万;14:39,64.29,,64.29 #0f990f,-0.25% #0f990f,6.87万;14:40,64.28,,64.28 #0f990f,-0.26% #0f990f,6.42万;14:41,64.33,,64.33 #0f990f,-0.19% #0f990f,4.61万;14:42,64.39,,64.39 #0f990f,-0.09% #0f990f,4.74万;14:43,64.38,,64.38 #0f990f,-0.11% #0f990f,3.99万;14:44,64.45,,64.45 ,0.00% ,6.71万;14:45,64.45,,64.45 ,0.00% ,10.28万;14:46,64.46,,64.46 #f54545,0.02% #f54545,9.81万;14:47,64.48,,64.48 #f54545,0.05% #f54545,8.92万;14:48,64.50,,64.50 #f54545,0.08% #f54545,11.62万;14:49,64.49,,64.49 #f54545,0.06% #f54545,6.54万;14:50,64.41,,64.41 #0f990f,-0.06% #0f990f,13.45万;14:51,64.42,,64.42 #0f990f,-0.05% #0f990f,12.27万;14:52,64.43,,64.43 #0f990f,-0.03% #0f990f,7.79万;14:53,64.43,,64.43 #0f990f,-0.03% #0f990f,11.13万;14:54,64.43,,64.43 #0f990f,-0.03% #0f990f,14.13万;14:55,64.43,,64.43 #0f990f,-0.03% #0f990f,10.33万;14:56,64.51,,64.51 #f54545,0.09% #f54545,24.44万;14:57,64.57,,64.57 #f54545,0.19% #f54545,20.06万;14:58,64.57,,64.57 #f54545,0.19% #f54545,28.33万;14:59,64.56,,64.56 #f54545,0.17% #f54545,23.72万;15:00,64.57,,64.57 #f54545,0.19% #f54545,6186;",
    "maxPoints": "242",
    "widPerChar": "7",
    "ajaxUrl": "https://sp0.baidu.com/8aQDcjqpAAV3otqbppnN2DJv/",
    "rid": "6896",
    "lastday": "64.45",
    "amount": [
        37500,
        136200,
        218100,
        116000,
        195400,
        148000,
        133800,
        186300,
        70800,
        68500,
        138900,
        212000,
        95200,
        120300,
        89700,
        137800,
        96600,
        190400,
        241000,
        200600,
        444900,
        346900,
        194300,
        120000,
        120200,
        125700,
        93200,
        60600,
        49200,
        70500,
        77600,
        56300,
        58500,
        30200,
        72000,
        42900,
        47300,
        12900,
        43100,
        58200,
        78000,
        57500,
        41200,
        89800,
        48200,
        42700,
        37200,
        98600,
        108700,
        100300,
        89700,
        110200,
        80500,
        58000,
        112500,
        104900,
        73000,
        59400,
        64000,
        13900,
        81300,
        168900,
        105500,
        59100,
        32600,
        70900,
        39200,
        9500,
        55000,
        33700,
        10900,
        98100,
        80900,
        16800,
        28100,
        111200,
        60200,
        83900,
        127900,
        20400,
        92900,
        89800,
        33200,
        28800,
        43700,
        62600,
        72100,
        49800,
        111200,
        85500,
        98100,
        45500,
        42700,
        54500,
        97800,
        44600,
        64900,
        128500,
        32900,
        72300,
        35900,
        17800,
        32800,
        10800,
        20100,
        25100,
        17500,
        8500,
        12900,
        42400,
        18800,
        33100,
        18100,
        16600,
        8800,
        14800,
        12000,
        14800,
        13200,
        5800,
        7300,
        35400,
        10700,
        17100,
        18300,
        20200,
        15100,
        47200,
        49000,
        15700,
        57700,
        30100,
        12600,
        32700,
        44700,
        64800,
        47000,
        29200,
        13500,
        44900,
        48000,
        31600,
        28400,
        39000,
        43500,
        125700,
        29600,
        28900,
        122200,
        38700,
        22200,
        291600,
        263700,
        378100,
        391700,
        261600,
        471600,
        354100,
        174000,
        101500,
        230600,
        47300,
        91800,
        150600,
        48700,
        85800,
        49500,
        97500,
        96300,
        62400,
        46300,
        43000,
        24800,
        111300,
        40100,
        45700,
        56700,
        70500,
        52400,
        40100,
        50100,
        11100,
        65200,
        42300,
        13000,
        79800,
        66100,
        71900,
        69900,
        88600,
        145500,
        56800,
        59000,
        82900,
        53000,
        114300,
        43000,
        181200,
        149100,
        62500,
        67200,
        97000,
        69600,
        119200,
        111800,
        44700,
        71600,
        19600,
        61000,
        42200,
        48000,
        69300,
        39600,
        44800,
        50800,
        42400,
        43900,
        41100,
        108400,
        53700,
        68700,
        64200,
        46100,
        47400,
        39900,
        67100,
        102800,
        98100,
        89200,
        116200,
        65400,
        134500,
        122700,
        77900,
        111300,
        141300,
        103300,
        244400,
        200600,
        283300,
        237200,
        6186
    ],
    "source_arr": {
        "东方财富网": "157edc0ce7a3ff504e6e43dba84f1f85",
        "同花顺": "d31670d2d369e970fbe55d569e69cbb4",
        "百度股市通": "8d65411a229000c5999ce4e7da05fd35"
    },
    "code": "600570",
    "_tcUrl": "http://m.baidu.com/from=844b/ssid=4b896c6f76657863746b4b00/uid=0/bd_page_type=1/pu=usm%404%2Csz%401320_2001%2Cta%40iphone_1_9.1_3_601/baiduid=802B605B882426B00D80963FEE816172/w=0_10_%E6%81%92%E7%94%9F%E7%94%B5%E5%AD%90/t=iphone/l=1/tc?ref=www_iphone&amp;lid=9165972519340145110&amp;order=2&amp;fm=alop&amp;cyc=&amp;sto=&amp;tj=2Jg_2_0_10_l1&amp;src=",
    "item_name": "600570",
    "vtype": "stock_hushen",
    "urlForAndroid": "",
    "display": {
        "cur": {
            "color": "#f54545",
            "info": "+0.12 (+0.19%)",
            "num": "64.57",
            "status": "up"
        },
        "info": [
            {
                "color": "#0f990f",
                "name": "今开",
                "value": "64.39"
            },
            {
                "color": "",
                "name": "昨收",
                "value": "64.45"
            },
            {
                "color": "#f54545",
                "name": "最高",
                "value": "65.37"
            },
            {
                "color": "#0f990f",
                "name": "最低",
                "value": "63.81"
            },
            {
                "color": "",
                "name": "换手率",
                "value": "3.25%"
            },
            {
                "color": "",
                "name": "成交量",
                "value": "2007.03万"
            },
            {
                "color": "",
                "name": "市盈率",
                "value": "134.52"
            },
            {
                "color": "",
                "name": "总市值",
                "value": "398.92亿"
            },
            {
                "color": "",
                "name": "流通市值",
                "value": "398.92亿"
            },
            {
                "color": "",
                "name": "成交额",
                "value": "12.96亿"
            }
        ],
        "pan": [
            {
                "name": "上证",
                "url": "http://quote.eastmoney.com/zs000001.html?from=BaiduAladdin",
                "value": "3017.29(+0.36%)"
            },
            {
                "name": "深成",
                "url": "http://quote.eastmoney.com/zs399001.html?from=BaiduAladdin",
                "value": "10641.65(+0.37%)"
            }
        ],
        "propkey": "a6f455d4d879f5f7481fc882f9ccd0dfc04d0f63",
        "propname": "minute",
        "propsite": "eastmoney",
        "tab": {
            "cx": {
                "o": [
                    "09:30",
                    "10:30",
                    "11:30/13:00",
                    "14:00",
                    "15:00"
                ]
            },
            "cy": {
                "o": [
                    "65.37",
                    "64.91",
                    "64.45",
                    "63.99",
                    "63.53"
                ]
            },
            "img": "http://baiduapi.eastmoney.com/QuoteAPI/pic_ab/6005701.png",
            "p": "2016\/04\/13,58.06,60.82,57.80,58.57,5368.52\u4e07,58.47,58.97,56.71,1.90%;2016\/04\/14,58.97,59.97,57.85,59.65,3825.99\u4e07,58.66,59.09,57.55,1.84%;2016\/04\/15,59.95,61.98,59.30,60.16,4886.28\u4e07,58.91,59.28,58.20,0.85%;2016\/04\/18,57.70,58.46,57.15,57.88,3615.23\u4e07,58.75,59.37,58.50,-3.79%;2016\/04\/19,58.50,59.62,57.65,58.25,2753.03\u4e07,58.90,58.92,58.57,0.64%;2016\/04\/20,58.38,59.36,54.01,55.55,5193.45\u4e07,58.30,58.38,58.43,-4.64%;2016\/04\/21,55.03,55.19,50.93,51.44,4703.28\u4e07,56.66,57.66,58.08,-7.40%;2016\/04\/22,51.01,52.55,50.70,52.28,2698.51\u4e07,55.08,56.99,57.74,1.63%;2016\/04\/25,51.74,51.74,49.85,51.04,2616.42\u4e07,53.71,56.23,57.48,-2.37%;2016\/04\/26,51.10,52.99,50.82,52.83,2460.55\u4e07,52.63,55.76,57.28,3.51%;2016\/04\/27,53.02,53.20,51.69,51.78,2426.84\u4e07,51.87,55.09,57.03,-1.99%;2016\/04\/28,51.73,55.20,51.52,54.34,4950.28\u4e07,52.45,54.56,56.82,4.94%;2016\/04\/29,53.81,55.50,53.10,54.57,3068.92\u4e07,52.91,54.00,56.64,0.42%;2016\/05\/03,54.50,58.49,54.07,57.84,3601.89\u4e07,54.27,53.99,56.68,5.99%;2016\/05\/04,57.20,58.55,57.02,57.60,2633.47\u4e07,55.23,53.93,56.43,-0.41%;2016\/05\/05,57.33,59.30,57.33,58.74,3236.89\u4e07,56.62,54.25,56.32,1.98%;2016\/05\/06,58.92,59.88,55.55,55.64,4425.82\u4e07,56.88,54.67,56.16,-5.28%;2016\/05\/09,54.61,54.65,52.00,52.69,2898.57\u4e07,56.50,54.71,55.85,-5.30%;2016\/05\/10,53.49,53.49,52.03,52.54,1722.55\u4e07,55.44,54.86,55.54,-0.28%;2016\/05\/11,53.00,53.54,51.69,52.63,2205.21\u4e07,54.45,54.84,55.30,0.17%;2016\/05\/12,51.70,53.23,50.52,53.17,2108.26\u4e07,53.33,54.98,55.03,1.03%;2016\/05\/13,52.70,53.25,50.18,50.75,3003.80\u4e07,52.36,54.62,54.59,-4.55%;2016\/05\/16,50.20,51.77,50.20,51.41,1870.57\u4e07,52.10,54.30,54.15,1.30%;2016\/05\/17,51.70,56.55,50.62,55.67,5572.65\u4e07,52.73,54.08,54.04,8.29%;2016\/05\/18,54.02,54.30,52.10,52.97,3489.02\u4e07,52.79,53.62,53.77,-4.85%;2016\/05\/19,53.11,56.55,53.11,53.97,4234.78\u4e07,52.95,53.14,53.69,1.89%;2016\/05\/20,53.30,59.11,53.11,58.59,5961.93\u4e07,54.52,53.44,54.05,8.56%;2016\/05\/23,58.10,60.14,57.57,58.91,5111.64\u4e07,56.02,54.06,54.38,0.55%;2016\/05\/24,58.28,58.55,57.18,58.14,2821.98\u4e07,56.52,54.62,54.74,-1.31%;2016\/05\/25,59.98,61.87,58.05,58.15,4775.66\u4e07,57.55,55.17,55.01,0.02%;2016\/05\/26,58.00,60.30,55.50,59.83,4560.96\u4e07,58.72,55.84,55.41,2.89%;2016\/05\/27,59.00,59.50,57.66,57.76,3350.03\u4e07,58.56,56.54,55.58,-3.46%;2016\/05\/30,56.55,57.68,55.65,56.22,1937.08\u4e07,58.02,57.02,55.66,-2.67%;2016\/05\/31,57.00,61.84,56.70,61.17,6762.08\u4e07,58.63,57.57,55.83,8.80%;2016\/06\/01,60.88,63.47,59.68,61.74,6940.16\u4e07,59.34,58.45,56.03,0.93%;2016\/06\/02,61.01,63.78,60.70,62.58,5076.53\u4e07,59.89,59.31,56.23,1.36%;2016\/06\/03,62.00,68.84,61.50,66.98,7729.34\u4e07,61.74,60.15,56.79,7.03%;2016\/06\/06,67.60,71.90,66.99,69.53,6739.45\u4e07,64.40,61.21,57.64,3.81%;2016\/06\/07,69.01,70.86,68.20,70.04,4491.43\u4e07,66.17,62.40,58.51,0.73%;2016\/06\/08,69.71,71.48,68.30,68.50,4661.00\u4e07,67.53,63.44,59.30,-2.20%;2016\/06\/13,67.30,69.50,62.40,62.76,5154.29\u4e07,67.56,63.73,59.78,-8.38%;2016\/06\/14,62.50,63.00,60.62,62.48,5147.38\u4e07,66.66,64.20,60.37,-0.45%;2016\/06\/15,61.20,67.79,61.20,65.05,5851.60\u4e07,65.77,65.08,61.05,4.11%;2016\/06\/16,64.90,65.70,63.11,63.73,3723.32\u4e07,64.50,65.34,61.46,-2.03%;2016\/06\/17,64.30,67.34,64.28,64.97,4535.67\u4e07,63.80,65.66,62.06,1.95%;2016\/06\/20,65.25,66.20,63.00,65.76,3131.68\u4e07,64.40,65.98,62.64,1.22%;2016\/06\/21,66.63,68.39,63.50,64.09,4759.98\u4e07,64.72,65.69,62.92,-2.54%;2016\/06\/22,63.49,67.00,63.21,66.99,4330.57\u4e07,65.11,65.44,63.32,4.52%;2016\/06\/23,66.50,67.17,64.71,65.93,3097.04\u4e07,65.55,65.03,63.71,-1.58%;2016\/06\/24,65.89,67.50,62.51,65.45,4787.28\u4e07,65.64,64.72,64.08,-0.73%;2016\/06\/27,65.80,67.30,65.30,66.85,3958.70\u4e07,65.86,65.13,64.43,2.14%;2016\/06\/28,66.05,67.18,64.88,66.46,3977.09\u4e07,66.34,65.53,64.86,-0.58%;2016\/06\/29,66.84,67.98,65.62,66.18,3242.49\u4e07,66.17,65.64,65.36,-0.42%;2016\/06\/30,66.00,67.99,65.86,66.77,3781.50\u4e07,66.29,65.70,65.39,0.47%;2016\/07\/01,67.00,67.20,64.20,64.68,3812.05\u4e07,66.19,65.92,65.79,-3.13%;2016\/07\/04,63.61,66.50,63.60,65.09,3388.65\u4e07,65.84,65.85,65.91,0.63%;2016\/07\/05,65.00,65.10,63.70,64.45,2535.20\u4e07,65.43,65.89,65.79,-0.98%;2016\/07\/06,64.39,65.37,63.81,64.57,2007.03\u4e07,65.11,65.64,65.54,0.19%;2016\/07\/07,64.25,64.40,62.38,63.13,3236.76\u4e07,64.38,65.36,65.19,-2.23%;2016\/07\/08,63.17,63.84,62.69,63.14,1688.09\u4e07,64.08,65.13,64.93,0.02%;",
            "points": "242",
            "pop": {
                "o": [
                    "当前价:",
                    "涨跌幅:",
                    "成交量:"
                ]
            },
            "shoupan": "64.45"
        },
        "tip": {
            "label": "",
            "text": ""
        },
        "update": {
            "text": "2016/07/06 15:00:00",
            "time": "1467788400",
            "timezone": "（北京时间）",
            "type": "2"
        }
    },
    "reqTn": "",
    "zstatus": 2
}
        var axisData = (function (result){
            var timeArr = [];
            var colorArr = [];
            var xAxleArr = [];
            var tempArr = result.p.split(';');

            for (var i = 0, len = tempArr.length; i < len; i++) {
                var curArr = tempArr[i].split(',');

                timeArr.push(curArr[0]);

                if (!curArr[3]) {
                    curArr[3] = "#0f990f";
                }
                colorArr.push(curArr[3].split(' ')[1]);

                xAxleArr.push(curArr[1]);
            };

            return {
                yAxle: result.yAxle,
                xAxle: xAxleArr,
                time: timeArr,
                amount: result.amount,
                color: colorArr,
                lastday: result.lastday
            }
        })(datas);
    return {
      abcd:false,
      isActive:false,
      iframeurl:'http://appjk.lep365.com/hgShop/goods',
      isno:"yes",
      myline: {
            tooltip : {
                show: false
            },
            legend: {
                show: false
            },
            grid: {
                left: 36,
                top: 10,
                right: 0,
                bottom: 10
            },
            xAxis: {
                data: axisData.time,
                boundaryGap : false,
                axisLine: {show: false,onZero: false},
                axisTick: {show: false},
                splitLine: {show: false},
                axisLabel: {show: false}
            },
            yAxis :{
                type: 'value',
                data : axisData.yAxle,
                axisLabel: {
                    margin: 4,
                    textStyle: {
                        color: '#999'
                    }
                },
                axisLine: {
                    show: false
                },
                splitLine: {
                    lineStyle: {
                        color: '#f1f1f1'
                    }
                },
                boundaryGap : false,
                axisTick: {show: false},
                min: axisData.yAxle[axisData.yAxle.length - 1]
            },
            series : [
                {
                    type:'line',
                    stack: '总量',
                    data: axisData.xAxle,
                    itemStyle: {
                        normal: {
                            color: '#77c6ff'
                        }
                    },
                    lineStyle: {
                        normal: {
                            color: '#77c6ff',
                            width: 1
                        }
                    },
                    areaStyle: {
                        normal: {
                            color: '#f1f9ff'
                        }
                    },
                    symbolSize: 0,
                    markLine: {
                        data: [
                            {
                                name: '昨收',
                                yAxis: Number(axisData.lastday)
                            }
                        ],
                        symbol: ['rect'],
                        symbolSize: 0,
                        lineStyle: {
                            normal: {
                                color: '#aeddff',
                                type: 'solid',
                                opacity: .6
                            }
                        }
                    }
                }
            ]
        } ,
      polar: {
        title: {
          text: '极坐标双数值轴'
        },
        legend: {
          data: ['line']
        },
        polar: {
          center: ['50%', '54%']
        },
        tooltip: {
          trigger: 'axis',
          axisPointer: {
            type: 'cross'
          }
        },
        angleAxis: {
          type: 'value',
          startAngle: 0
        },
        radiusAxis: {
          min: 0
        },
        series: [
          {
            coordinateSystem: 'polar',
            name: 'line',
            type: 'line',
            showSymbol: false,
            data: data
          }
        ],
        animationDuration: 2000
      }
    }
  },
  computed:{
    iframeHeight(){
      if(this.$store.getters.all_iheight){
        return this.$store.getters.all_iheight
        }else return {a:1}
      },
      iframurl(){
        if (this.$store.getters.all_iframeurl) {
          return this.$store.getters.all_iframeurl
       }
      else {


        var x =  window.localStorage.getItem("ls-token")
         if (x) {
           return Event.config.service.hgshop + x  //this.$store.getters.all_login.accessToken

         }

      }
      }
    ,
    idontkown(){
      return  true
    },
    get_all_agent(){
       return this.$store.getters.all_agent
    }
  },
    mounted() {
        this.$nextTick(function() {
          console.info('locations ',window.location.href );
          // $("#idontkown").load(function() {
          //     $(this).height( $(this).contents().find("html").height() );
          // });
// var frame1 = document.getElementById("idontkown");
// var frame1 = document.getElementById("idontkown");
// frame1.contentWindow.location.reload();
// console.info(frame1);
// console.info(frame1.src);
// console.info(frame1.contentWindow,888);
// console.info(frame1.contentWindow.location.href,9999999999999999999999999999999);
window.localst
    var browser = {
        versions: function() {
            var u = navigator.userAgent;
            var app = navigator.appVersion;
            return {

                android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1,

                iPhone: u.indexOf('iPhone') > -1 ,

                iPad: u.indexOf('iPad') > -1,
                iPod: u.indexOf('iPod') > -1,

            };
        } (),
        language: (navigator.browserLanguage || navigator.language).toLowerCase()
    }
          if (browser.versions.iPhone||browser.versions.iPad||browser.versions.iPod){
            this.isno = "no"
this.isActive = "true"
          }else {
            this.isno = "yes"
          }
    Event.listen('changheight',(e) => {
      this.$store.commit('height_iframe',e)
    })
          Event.listen('redirect',(e) =>{
      this.$store.commit('login_iframe',e)
    })
    Event.listen('whatup',(e) => {
      this.$store.commit('is_logined')
      console.log(this.shopurl);
      if (this.all_myrest) {
        alert("hey done")
      }
      this.$router.push('/login') });




                window.addEventListener('message',function (e) {
                  if (e.data.greeting =="hello world") {
                    console.debug(e.data.greeting);
                  }
                  // console.info(e);
                } );
            })
      },
  methods:{
    c(){
      var iframeHeight = $("#myIframe").contents().find("body").height();
        $("#myIframe").height(iframeHeight);
        alert(iframeHeight)
    },
    b(){
      // console.info(this.$route.params.agent,'000000000000000000000000000000')

var frame1 = document.getElementById("idontkown");
// frame1.contentWindow.location.reload();
console.info(frame1);
console.info(frame1.contentWindow);
console.info(frame1.contentWindow.location);
alert(frame1.contentWindow.location.href);
console.info(frame1.src);
    },
    a (){
   alert(333)
    console.info(this.polar);}
  },
  created(){
this.$store.commit('initToken')

      var x =  window.localStorage.getItem("as")
      var y =  window.localStorage.getItem("ak")
      console.info(y,"yyy");
      console.info(x,"xxx");

    Event.listen('whatup',() => {
      console.log(this.shopurl);
alert("c")
      if (this.all_myrest) {
        alert("hey done")
      }
      this.$router.push('/login') });
    // console.info(2222);
  },
  components: {
    VueFrame,
    Card,
    Divider,
    Cell,
    chart: ECharts
  }
}
</script>

<style scoped lang="less">

#idontkown img {
  /* display:none !important */
}
.echarts {
  height: 300px;
}
@import '~vux/src/styles/1px.less';
.weui-panel__hd {text-align:center ;}
.card-demo-flex {
  display: flex;
}
.card-demo-content01 {
  padding: 10px 0;
}
.card-padding {
  padding: 15px;
}
.card-demo-flex > div {
  flex: 1;
  text-align: center;
  font-size: 12px;
}
.card-demo-flex span {
  color: #f74c31;
}

@charset "utf-8";
/* CSS Document */
*{ margin:0; padding:0;}
html{ background-color:#fbfbfb;}
body,html,main{ width:100%; font-size:12px;}
div img{ width:100%;}

.wrap{ padding:10px;}
.qstbox{ padding-bottom:14px; border-bottom:1px solid #e0e0e0; margin-bottom:10px;}
.qstbox:nth-last-child(1){ border:none;}
.qst{ font-size:14px; color:#212121; font-weight:bold; margin-bottom:5px;}
.text{ font-size:12px; color:#656565; padding-left:23px;}

</style>
